package com.builder.amine;

public class DrinkDirector {

    private DrinkBuilder drinkBuilder = null;

    DrinkDirector(DrinkBuilder drinkBuilder){
        this.drinkBuilder = drinkBuilder;
    }

    public void setDrinkBuilder(DrinkBuilder drinkBuilder) {
        this.drinkBuilder = drinkBuilder;
    }

    public Drink constructDrink(){
        drinkBuilder.setFruit();
        drinkBuilder.setSugar();
        drinkBuilder.setWater();
        return drinkBuilder.buildDrink();
    }
}
